import 'package:flutter/material.dart';

void main() => runApp(const CenterDemo());

class CenterDemo extends StatelessWidget {
  const CenterDemo({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Center Demo'),
        ),
        body: const Center(
          heightFactor: 2.0,
          widthFactor: 1.5,
          child: Text('Hello, World!'),
        ),
      ),
    );
  }
}